/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2025-01-10     86157       the first version
 */
#ifndef APPLICATIONS_INC_COMMAND_FRAME_H_
#define APPLICATIONS_INC_COMMAND_FRAME_H_

#include "j1939.h"
#include "j1939_config.h"
#include <set_frameInfo.h>
#include <stdio.h>
#include <rtdbg.h>
#include <rtthread.h>
#include "gpio.h"

int j1939_GDCMD_FixedGroup(uint8_t addr, uint8_t PDU, uint8_t operation_instructions, uint8_t voltage_output_range); //遥控命令帧（固定分组模式）
int j1939_GDCMD_DynamicGroup(uint8_t addr, uint8_t PDU, uint8_t operation_instructions, uint8_t voltage_output_range); //遥控命令帧（动态分组模式）
int j1939_SET_VALUECMD(FixedValueSet *pthis, j1939_uint8_t addr, uint8_t PDU); //定值设置命令帧
int j1939_GPCMD_DynamicGroup(GroupSetFrame *pthis, uint8_t addr, uint8_t PDU); //分组设置命令帧

int j1939_TICK_MSG_AOC(void); //功率控制模块心跳帧

#endif /* APPLICATIONS_INC_COMMAND_FRAME_H_ */
